/*
 * @Author: hewenke
 * @Date: 2023-09-13 16:12:34
 * @LastEditors: hewenke hewenke@dataojo.com
 * @LastEditTime: 2023-09-15 14:32:24
 * @FilePath: \react-app\src\pages\account\index.js
 * @Description: Account page
 */
import { useNavigate } from 'react-router-dom'
import { Button, theme } from 'antd'
import './styles.less'

const { useToken } = theme


function Account() {
  // 创建路由钩子
  const navigate = useNavigate()

  // 获取Design Token
  const { token } = useToken()


  return (
    <div className="account-wrapping">
      <h1 style={{color: token.colorText}}>Account Page</h1>
      <div className="ipt-con">
        <Button type="primary" onClick={() => { navigate('/login') }}>返回登录</Button>
      </div>
    </div>
  )
}

export default Account